package tt.com.common.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.math.BigDecimal;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import tt.com.common.annotation.IsNull;

/**
 *  出藏时间,入藏时间(不为空)
    * 逝者冷藏表
    */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "yx_funeral_dead_cold_room")
public class DeadColdRoom {
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 冷藏棺
     */
    @TableField(value = "cold_room_id")
    private String coldRoomId;

    /**
     *  逝者
     */
    @TableField(value = "dead_id")
    private String deadId;

    /**
     * 出藏时间
     */
    @IsNull
    @TableField(value = "come_cold_time")
    private Date comeColdTime;

    /**
     * 入藏时间
     */
    @IsNull
    @TableField(value = "enter_cold_time")
    private Date enterColdTime;

    /**
     * 冷藏费用
     */
    @TableField(value = "cold_price")
    private BigDecimal coldPrice;

    /**
     * 冷藏状态  1入藏  2出藏
     */
    @TableField(value = "refrigerate_status")
    private Integer refrigerateStatus;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 创建人
     */
    @TableField(value = "create_user_id")
    private String createUserId;

    /**
     * 最后修改时间
     */
    @TableField(value = "last_update_time")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date lastUpdateTime;

    /**
     * 最后修改人
     */
    @TableField(value = "last_update_user_id")
    private String lastUpdateUserId;

    /**
     * 删除时间
     */
    @TableField(value = "delete_time")
    private Date deleteTime;

    /**
     * 删除人
     */
    @TableField(value = "delete_user_id")
    private String deleteUserId;

    /**
     * 删除状态(0删除 1正常)
     */
    @TableField(value = "data_status")
    private Integer dataStatus;

    /**
     * 组织id
     */
    @TableField(value = "organ_id")
    private String organId;

    /**
     * 执行时间(出藏操作时间)
     */
    @TableField(value = "execute_date")
    private Date executeDate;

    /**
     * 执行业务员（出藏操作业务员）
     */
    @TableField(value = "execute_user")
    private String executeUser;

    public static final String COL_ID = "id";

    public static final String COL_COLD_ROOM_ID = "cold_room_id";

    public static final String COL_DEAD_ID = "dead_id";

    public static final String COL_COME_COLD_TIME = "come_cold_time";

    public static final String COL_ENTER_COLD_TIME = "enter_cold_time";

    public static final String COL_COLD_PRICE = "cold_price";

    public static final String COL_REFRIGERATE_STATUS = "refrigerate_status";

    public static final String COL_CREATE_TIME = "create_time";

    public static final String COL_CREATE_USER_ID = "create_user_id";

    public static final String COL_LAST_UPDATE_TIME = "last_update_time";

    public static final String COL_LAST_UPDATE_USER_ID = "last_update_user_id";

    public static final String COL_DELETE_TIME = "delete_time";

    public static final String COL_DELETE_USER_ID = "delete_user_id";

    public static final String COL_DATA_STATUS = "data_status";

    public static final String COL_ORGAN_ID = "organ_id";

    public static final String COL_EXECUTE_DATE = "execute_date";

    public static final String COL_EXECUTE_USER = "execute_user";
}